package cn.chen.base;

public class Demo {

    public static void main(String[] args) {
        int count = 0;
        int num = 0;
        for(int i = 0;i <= 100;i ++){
            num = num + i;
            count = count++;
        }
        System.out.println(num * count);

        count = 0;
        num = 0;
        for(int i = 0;i <= 100;i ++){
            num = num + i;
            count++;
        }
        System.out.println(num * count);

        count = 0;
        num = 0;
        for(int i = 0;i <= 100;i ++){
            num = num + i;
            count = ++count;
        }
        System.out.println(num * count);
    }

    public static int mockAdd(int count){
        int temp = count;
        count = count + 1;
        return temp;
    }

}
